<?php 

// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: create by allen.qiang
// +----------------------------------------------------------------------

/**
 * 商品原材料
 *
 * @package 	htdocs
 * @subpackage  quanliadmin
 * @author  	create by allen.qiang
 */

class pa_goodsMater {
	
	public function execute() {
		
		if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] >0) {
			switch ($_REQUEST['operFlg']) {
				case 1:	//原材料列表
					$this->materList();
					break;
				default:
					backendError();
			}
		} else {
			backendError();
		}
		
	}
	
	/**
	 * 原材料列表
	 */
	private function materList() {
		global $G_PGLOB;
		
		//编辑权限
		$G_PGLOB->smarty->assign('edit_permission',$G_PGLOB->has_permission(535));
		$G_PGLOB->smarty->display('goods/goodsMaterList.tpl');
	}
	
}